package com.duan.boot.mapper;

import com.duan.boot.entity.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface NewsMapper {


    News getById(@Param("id") Long id);

    Integer insertOaNews(@Param("news") News news) ;

    List<News> findAll();

    List<News> getByType(Integer newsType);
}
